package com.vallis.asfc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author vallis
 * @since 2020-06-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Group extends Model<Group> {

    private static final long serialVersionUID = 1L;

    /**
     * 组id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 组名称
     */
    private String groupName;

    /**
     * 父组id
     */
    private Long parentId;

    /**
     * 创建时间
     */
    private LocalDateTime creatTime;

    /**
     * 组描述
     */
    private String groupDescription;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
